]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lookingGlass: Drop seat state check after grabs
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 30 Dec 2025 13:35:50 +0000 (14:35 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 19 Jan 2026 16:28:44 +0000 (16:28 +0000)
Grabs are non-failable now, we do not need to check for
the backend seat actually having been able to perform the
request.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4020>

js/ui/lookingGlass.js

index a165ae2711983842b9559f2c80d6c1473543be04..02cda39fd7456f861b9e6770823d53bc1fdf0122 100644 (file)
@@ -483,11 +483,6 @@ class ObjInspector extends St.ScrollView {
             return;
 
         const grab = Main.pushModal(this, {actionMode: Shell.ActionMode.LOOKING_GLASS});
-        if (grab.get_seat_state() !== Clutter.GrabState.ALL) {
-            Main.popModal(grab);
-            return;
-        }
-
         this._grab = grab;
         this._previousObj = null;
         this._open = true;
@@ -1657,11 +1652,6 @@ class LookingGlass extends St.BoxLayout {
             return;
 
         const grab = Main.pushModal(this, {actionMode: Shell.ActionMode.LOOKING_GLASS});
-        if (grab.get_seat_state() !== Clutter.GrabState.ALL) {
-            Main.popModal(grab);
-            return;
-        }
-
         this._grab = grab;
         this.show();
         this._open = true;